program ly;
{$APPTYPE CONSOLE}

var
  i, j: Integer;

function test(i: integer): Boolean;
begin
  Result := False;
  while i <> 0 do begin
    Result := Result xor Boolean(i mod 2);
    i := i div 2;
  end;
end;

begin
  for i := 0 to 31 do begin
    for j := 0 to 31 do
      if test(i xor j) then
        write(' ')
      else
        write('x');
    write(' | ');
    for j := 0 to 31 do
      if test(i) xor test(j) then
        write(' ')
      else
        write('x');
    writeln;
  end;


  readln;
end.
